using ViScript.Core.Argument;

namespace ViScript.Core.Argument
{
    public class NormalArgument : IArgument
    {
        private readonly object value;

        public NormalArgument(object value)
        {
            this.value = value;
        }

        public bool IsValid
        {
            get { return true; }
        }

        public object Value
        {
            get { return value; }
        }

        public void Accept(IArgumentVisitor visitor)
        {
            visitor.VisitNormalArgument(this);
        }
    }
}